import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
App.mpType = 'app'

import {
    debug,
    request,
    login,
    webLogin,
    api,
    host,
    hostName,
    wx_pay,
	formatDate
} from 'common/common.js'


Vue.prototype.$debug = debug
Vue.prototype.$request = request
Vue.prototype.$login = login
Vue.prototype.$webLogin = webLogin
Vue.prototype.$api = api
Vue.prototype.$host = host
Vue.prototype.$hostName = hostName
Vue.prototype.$wx_pay = wx_pay
Vue.prototype.$formatDate = formatDate

// #ifdef H5
    import jweixin from 'common/jweixin-1.6.0.js'
    Vue.prototype.$wx = jweixin
// #endif

const app = new Vue({
    ...App
})
app.$mount()
